//
//  NewsDetailViewController.m
//  projectA_kuaiZuiManHua
//
//  Created by mk on 15-3-23.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "NewsDetailViewController.h"
#import "AFNetworking.h"
#import "NetHandler.h"
@interface NewsDetailViewController ()
@property (nonatomic, retain)UIWebView *webView;
@end

@implementation NewsDetailViewController



- (void)viewDidLoad {
    [super viewDidLoad];

    NSString *str = self.news.url;
    NSLog(@"%@",str);
    
    NSURL *url = [NSURL URLWithString:[str stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];

    self.webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height )];

    NSURLRequest *request =[NSURLRequest requestWithURL:url];
    [_webView loadRequest:request];
    [self.view addSubview:self.webView];
    [_webView release];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
